package com.xidian.zhiancloud.dao.syset;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xidian.zhiancloud.model.syset.WorkFlowUserList;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface WorkFlowUserMapper extends BaseMapper<WorkFlowUserList> {

    int AddWorkFlowUserList(@Param("companyId") Long companyId,@Param("workflowstepId") String workflowstepId,@Param("bpmlId") String bpmlId,@Param("userId") String userId, @Param("jobId") String jobId);

    List<WorkFlowUserList> getWorkFlowUserList(
            @Param("companyId") Long companyId,
            @Param("workflowstepId") String workflowstepId,
            @Param("bpmlId") String bpmlId);

    List<WorkFlowUserList> getByFlChIdAndFlTyAndUsType(@Param("companyId") Long companyId,
        @Param("flowType") Integer flowType,
        @Param("flowChildId") Integer flowChildId,
        @Param("userType") String userType);
    
    int updateWorkFlowUser(@Param("params") Map<String,Object> params);

    int addWorkFlowUser(@Param("params") Map<String,Object> params);
    
    List<WorkFlowUserList> getByFlowTypeAndUser(@Param("companyId") Long companyId,
        @Param("flowType") Integer flowType);

    WorkFlowUserList getUserPersoList(Long companyId,String userType);

    List<WorkFlowUserList> getUserPersoListsss(Long companyId,String str);
    
    //获取事故审核人列表
    WorkFlowUserList getByAccidentAuditAndJobId(@Param("companyId") Long companyId);

    //获取事故调查人列表
    WorkFlowUserList getByAccidentSurveyAndJobId(@Param("companyId") Long companyId);

    //获取危化品领用审批人列表
    WorkFlowUserList getByChemicalReviewerAndJobId(@Param("companyId") Long companyId);
    
    //获取事故审核人列表
    List<Integer> getAccidentAudit(@Param("companyId") Long companyId);

    //获取事故调查人列表
    List<Integer> getAccidentSurvey(@Param("companyId") Long companyId);
    
    
}
